package com.fqgj.xjd.user.client.request;

import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;

/**
 * 保存用户PanCard
 *
 * @author liuming
 * Created on 下午4:59 2018/8/17.
 */
public class UserPanSaveInfo implements Serializable {

    private static final long serialVersionUID = 3357058238763338916L;
    /**
     * user code
     */
    private String userCode;
    /**
     * pan card 号
     */
    private String cardNo;
    /**
     * 手动填写的pan card号
     */
    private String manualCardNo;
    /**
     * pan card 图片oss地址
     */
    private String cardUrl;

    private String statusCode;

    private String refNum;

    private String panStatus;

    private String message;

    public String getManualCardNo() {
        return manualCardNo;
    }

    public UserPanSaveInfo setManualCardNo(String manualCardNo) {
        this.manualCardNo = manualCardNo;
        return this;
    }

    public UserPanSaveInfo setStatusCode(String statusCode) {
        this.statusCode = statusCode;
        return this;
    }

    public String getRefNum() {
        return refNum;
    }

    public UserPanSaveInfo setRefNum(String refNum) {
        this.refNum = refNum;
        return this;
    }

    public String getPanStatus() {
        return panStatus;
    }

    public UserPanSaveInfo setPanStatus(String panStatus) {
        this.panStatus = panStatus;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public UserPanSaveInfo setMessage(String message) {
        this.message = message;
        return this;
    }

    public String getUserCode() {
        return userCode;
    }

    public UserPanSaveInfo setUserCode(String userCode) {
        this.userCode = userCode;
        return this;
    }

    public String getCardNo() {
        return cardNo;
    }

    public UserPanSaveInfo setCardNo(String cardNo) {
        this.cardNo = cardNo;
        return this;
    }

    public String getCardUrl() {
        return cardUrl;
    }

    public UserPanSaveInfo setCardUrl(String cardUrl) {
        this.cardUrl = cardUrl;
        return this;
    }

    public boolean isValid() {
        return StringUtils.isNotBlank(userCode) &&
                StringUtils.isNotBlank(cardNo) &&
                StringUtils.isNotBlank(cardUrl);
    }

    public String getStatusCode() {
        return statusCode;
    }
}
